/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.space.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fuyao.cloud.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 位置管理
 *
 * @author 时间的朋友
 * @date 2021-11-16 19:23:41
 */
@Data
@TableName("fy_room_position")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "位置管理")
public class RoomPosition extends BaseEntity<RoomPosition> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键Id")
    private Long id;

    /**
     * 父位置ID
     */
    @ApiModelProperty(value="父位置ID")
    private Long parentId;
    /**
     * 父位置ID
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="父位置名称")
    private String parentName;

    /**
     * 位置名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="位置名称")
    private String name;

    /**
     * 床位编号
     */
    @ApiModelProperty(value="床位编号")
    private String code;

    /**
     * 床位编码，为后期做扫码用
     */
    @ApiModelProperty(value="床位编码，为后期做扫码用")
    private String assetNumber;

    /**
     * 房间ID
     */
    @ApiModelProperty(value="房间ID")
    private Long houseId;

    /**
     * 房间名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="房间名称")
    private String houseName;

    /**
     * 面积
     */
    @ApiModelProperty(value="面积")
    private String area;

    /**
     * 租金{房间类型是宿舍才显示}
     */
    @ApiModelProperty(value="租金{房间类型是宿舍才显示}")
    private String rent;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 排序号
     */
    @ApiModelProperty(value="排序号")
    private Long ordernumber;

    /**
     * 状态：0：代表空闲，1：预定中， 2：已入住，3:维修中，4：停用
     */
    @ApiModelProperty(value="状态：0：代表空闲，1：预定中， 2：已入住，3:维修中，4：停用")
    private String status;

    /**
     * 数据权限编码，从区域开始一直按着全编码按照表之间的依赖一直延续下去
     */
    @TableField(condition = SqlCondition.LIKE_RIGHT)
    @ApiModelProperty(value="数据权限编码，从区域开始一直按着全编码按照表之间的依赖一直延续下去")
    private String dataCode;

}
